#ifndef APISERVICE_H
#define APISERVICE_H

#include <QObject>
#include <QProcess>
#include <QQmlEngine>
#include <QThread>
// class QProcess{};

class ApiService : public QThread
{
    Q_OBJECT
    QML_ELEMENT
    QML_SINGLETON
public:
    explicit ApiService(QObject *parent = nullptr);
    ~ApiService();
    Q_INVOKABLE QString getBaseUrl();

signals:

private:
    int getRandomFreePort();
protected:
    void run();
};

#endif // APISERVICE_H
